from tkinter import *

root = Tk()

root.geometry("500x500")

Canvas =Canvas(bg="white, width=500, height=500")
def rect(x,y,w,h):
 Canvas.create_rectangle(x,y,x+w,y+h, fill="yellow")

# rect.rectangle(10,10,100,100, fill="gold")
# rect.rectangle(100,10,200,100, fill="blue")
# rect.rectangle(200,100,100,200, fill="orange")
# rect.rectangle(200,300,100,200, fill="red")
# rect.rectangle(300,300,100,200, fill="purple")

widht = 100
height = 100

rect("x:,y:,widht,height")
rect("x:90,y:,widht,height")
rect("x:190,y:90,widht,height")
rect("x:190,y:290,widht,height")
rect("x:290,y:290,widht,height")




Canvas.pack(alchor=CENTER,expand=1)

root.mainloop()





























